<%@ page language="java" contentType="text/html; charset=utf-8" pageEncoding="utf-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>


<div class="pageHeader">
	<form onsubmit="return navTabSearch(this);" action="${path}/appMessage" method="post" rel="pagerForm">
	<div class="searchBar">
		<table class="searchContent">
			<tr>
				<td>
					App基本档案：<!-- 查找带回公共页面 -->
					<a class="btnLook" href="${path}/lookUp" lookupGroup="appBasedoc" rel="app_menu_form">查找带回</a>
					<input id="inputlookup" name="appBasedoc.pk_basedoc" value="${appBasedoc.pk_basedoc}" type="hidden"/>
					<input id="vname" name="appBasedoc.vname" value="${appBasedoc.vname}" type="text" postField="keyword" suggestFields="vcode,vname" 
						suggestUrl="${path}/lookUp/suggest" lookupGroup="appBasedoc"/>
					<!-- <input type="text" name="appMessage.vcode" value="${appbase.vcode}" /> -->
				</td>
				<td>
					消息编码：<input type="text" name="appMessage.vcode" value="${appMessage.vcode}" />
				</td>
				<td>
					消息主题：<input type="text" name="appMessage.vname" value="${appMessage.vname}" />
				</td>
				<td>
					<div class="buttonActive"><div class="buttonContent"><button type="submit">检索</button></div></div>
				</td>
			</tr>
		</table>
		<div class="subBar">
			<ul>
			</ul>
		</div>
	</div>
	</form>
</div>
<div class="pageContent">
	<div class="panelBar">
		<ul class="toolBar">
			<li><a class="add"    href="${path}/appMessage/addPage" target="dialog" ref="formadd" width="640" height="400"><span>添加</span></a></li>
			<li><a class="delete" href="${path}/appMessage/delModel?appMessage.pk_message={pk_value}" target="ajaxTodo" title="确定要删除吗?"><span>删除</span></a></li>
			<li><a class="edit"   href="${path}/appMessage/editPage?appMessage.pk_message={pk_value}" width="640" height="400" target="dialog" ref="formedit"><span>修改</span></a></li>
			<li><a class="edit" href="${path}/appMessage/sendMessage?appMessage.pk_message={pk_value}" target="ajaxTodo" title="确定要推送吗?"><span>推送数据</span></a></li>
			<li class="line">line</li>
			<li><a class="icon" href="demo/dwz-team.xls" target="dwzExport" targetType="navTab" title="实要导出这些记录吗?"><span>导出EXCEL</span></a></li>
		</ul>
	</div>
	<table class="table" width="100%" layoutH="138">
		<thead>
			<tr>
				<th width="5%">序号</th>
				<th width="10%">App编码</th>
				<th width="10%">App名称</th>
				<th width="15%">消息编码</th>
				<th width="20%">消息主题</th>
				<th width="20%">消息内容</th>
				<!--<th width="15%">定时推送时间</th>
				<th width="15%">推送消息间隔(分钟)</th>-->
				<th width="10%">推送次数</th>
				<th width="10%">推送状态</th>
			</tr>
		</thead>
		<tbody>
			<c:forEach items="${page.list}" var="appMessage" varStatus="number">
				<tr target="pk_value" rel="${appMessage.pk_message}">
					<td>${number.index+1}</td>
					<td>${appMessage.vcode_basedoc}</td>
					<td>${appMessage.vname_basedoc}</td>
					<td>${appMessage.vcode}</td>
					<td>${appMessage.vname}</td>
					<td>${appMessage.comments}</td>
					<!--<td>${appMessage.send_time}</td>
					<td>${appMessage.send_interval}</td>-->
					<td>${appMessage.times}</td>
					
					<c:choose>
				       <c:when test="${appMessage.status==1}">
				           <td>已推送</td>
				       </c:when>
				       <c:when test="${appMessage.status==0}">
				           <td>未推送</td>
				       </c:when>
				       <c:otherwise>
				            <td>推送失败</td>
				       </c:otherwise>
					</c:choose>
				</tr>
			</c:forEach>
		</tbody>
	</table>
	
	<jsp:include page="/WEB-INF/jsp/pub/page_for_dwz.jsp?action=/appMessage" />
</div>
